import {RouteRecordRaw} from "vue-router";

export default {
	name: "setting",
	path: "/setting",
	require: "/setting/menu",
	meta: {
		icon: "Setting",
		title: "配置",
		type: "MENU"
	},
	children: [
		{
			name: "settingMenu",
			path: "/setting/menu",
			component: () => import("@/views/setting/menu/index.vue"),
			meta: {
				icon: "Menu",
				title: "菜单管理",
				type: "MENU",
				role: ["superAdmin", "admin"],
			}
		},
		{
			name: "settingRole",
			path: "/setting/role",
			component: () => import("@/views/setting/role/index.vue"),
			meta: {
				icon: "Avatar",
				title: "角色管理",
				type: "MENU",
				role: ["superAdmin", "admin"],
			}
		},
		{
			name: "settingUser",
			path: "/setting/user",
			component: () => import("@/views/setting/user/index.vue"),
			meta: {
				icon: "UserFilled",
				title: "用户管理",
				type: "MENU",
				role: ["superAdmin", "admin"],
			}
		},
	]
} as RouteRecordRaw